package com.ytc.www.dto;

import org.springframework.stereotype.Component;

/*
 * 作者:zql
 * datetime:
 * */
@Component
public class PageDTO<T1,T2> {
    private int gotoPage=1;
    private int getAllPageRecordCount;
    private int getCurrentPageRecordCount;
    private T1 pageData;
    private T2 queryCondition;
    private final int pageSize = 10;

    public PageDTO() {
    }

    public int getGetAllPageRecordCount() {
        return getAllPageRecordCount;
    }

    public void setGetAllPageRecordCount(int getAllPageRecordCount) {
        this.getAllPageRecordCount = getAllPageRecordCount;
    }

    public int getGetCurrentPageRecordCount() {
        return getCurrentPageRecordCount;
    }

    public void setGetCurrentPageRecordCount(int getCurrentPageRecordCount) {
        this.getCurrentPageRecordCount = getCurrentPageRecordCount;
    }

    public int getGotoPage() {
        return gotoPage;
    }

    public void setGotoPage(int gotoPage) {
        this.gotoPage = gotoPage;
    }

    public T1 getPageData() {
        return pageData;
    }

    public void setPageData(T1 pageData) {
        this.pageData = pageData;
    }

    public T2 getQueryCondition() {
        return queryCondition;
    }

    public void setQueryCondition(T2 queryCondition) {
        this.queryCondition = queryCondition;
    }

    public int getPageSize() {
        return pageSize;
    }
}
